Week 2 - Blink Using OS
lib_cfg.h
1 /*
2 *********************************************************************************************************
3 * uC/LIB
4 * CUSTOM LIBRARY MODULES
5 *
6 * (c) Copyright 2004-2013; Micrium, Inc.; Weston, FL
7 *
8 * All rights reserved. Protected by international copyright laws.
9 *
10 * uC/LIB is provided in source form to registered licensees ONLY. It is
11 * illegal to distribute this source code to any third party unless you receive
12 * written permission by an authorized Micrium representative. Knowledge of
13 * the source code may NOT be used to develop a similar product.
14 *
15 * Please help us continue to provide the Embedded community with the finest
16 * software available. Your honesty is greatly appreciated.
17 *
18 * You can contact us at www.micrium.com.
19 *********************************************************************************************************
20 */
21 
22 /*
23 *********************************************************************************************************
24 *
25 * CUSTOM LIBRARY CONFIGURATION FILE
26 *
27 * TEMPLATE
28 *
29 * Filename : lib_cfg.h
30 * Version : V1.37.02
31 * Programmer(s) : ITJ
32 *********************************************************************************************************
33 */
34 
35 
36 /*
37 *********************************************************************************************************
38 * MODULE
39 *********************************************************************************************************
40 */
41 
42 #ifndef LIB_CFG_MODULE_PRESENT
43 #define LIB_CFG_MODULE_PRESENT
44 
45 
46 /*
47 *********************************************************************************************************
48 *********************************************************************************************************
49 * MEMORY LIBRARY CONFIGURATION
50 *********************************************************************************************************
51 *********************************************************************************************************
52 */
53 
54 /*
55 *********************************************************************************************************
56 * MEMORY LIBRARY ARGUMENT CHECK CONFIGURATION
57 *
58 * Note(s) : (1) Configure LIB_MEM_CFG_ARG_CHK_EXT_EN to enable/disable the memory library suite external
59 * argument check feature :
60 *
61 * (a) When ENABLED, arguments received from any port interface provided by the developer
62 * or application are checked/validated.
63 *
64 * (b) When DISABLED, NO arguments received from any port interface provided by the developer
65 * or application are checked/validated.
66 *********************************************************************************************************
67 */
68 
69  /* Configure external argument check feature (see Note #1) : */
70 #define LIB_MEM_CFG_ARG_CHK_EXT_EN DEF_ENABLED
71  /* DEF_DISABLED Argument check DISABLED */
72  /* DEF_ENABLED Argument check ENABLED */
73 
74 
75 /*
76 *********************************************************************************************************
77 * MEMORY LIBRARY ASSEMBLY OPTIMIZATION CONFIGURATION
78 *
79 * Note(s) : (1) Configure LIB_MEM_CFG_OPTIMIZE_ASM_EN to enable/disable assembly-optimized memory function(s).
80 *********************************************************************************************************
81 */
82 
83  /* Configure assembly-optimized function(s) [see Note #1] : */
84 #define LIB_MEM_CFG_OPTIMIZE_ASM_EN DEF_ENABLED
85  /* DEF_DISABLED Assembly-optimized function(s) DISABLED */
86  /* DEF_ENABLED Assembly-optimized function(s) ENABLED */
87 
88 
89 /*
90 *********************************************************************************************************
91 * MEMORY ALLOCATION CONFIGURATION
92 *
93 * Note(s) : (1) Configure LIB_MEM_CFG_ALLOC_EN to enable/disable memory allocation functions.
94 *
95 * (2) (a) Configure LIB_MEM_CFG_HEAP_SIZE with the desired size of heap memory (in octets).
96 *
97 * (b) Configure LIB_MEM_CFG_HEAP_BASE_ADDR to specify a base address for heap memory :
98 *
99 * (1) Heap initialized to specified application memory, if LIB_MEM_CFG_HEAP_BASE_ADDR
100 * #define'd in 'app_cfg.h';
101 * CANNOT #define to address 0x0
102 *
103 * (2) Heap declared to Mem_Heap[] in 'lib_mem.c', if LIB_MEM_CFG_HEAP_BASE_ADDR
104 * NOT #define'd in 'app_cfg.h'
105 *********************************************************************************************************
106 */
107 
108  /* Configure memory allocation feature (see Note #1) : */
109 #define LIB_MEM_CFG_ALLOC_EN DEF_ENABLED
110  /* DEF_DISABLED Memory allocation DISABLED */
111  /* DEF_ENABLED Memory allocation ENABLED */
112 
113 
114 #define LIB_MEM_CFG_HEAP_SIZE 1024u /* Configure heap memory size [see Note #2a]. */
115 
116 #if 0 /* Configure heap memory base address (see Note #2b). */
117 #define LIB_MEM_CFG_HEAP_BASE_ADDR 0x00000000u
118 #endif
119 
120 
121 /*
122 *********************************************************************************************************
123 *********************************************************************************************************
124 * STRING LIBRARY CONFIGURATION
125 *********************************************************************************************************
126 *********************************************************************************************************
127 */
128 
129 /*
130 *********************************************************************************************************
131 * STRING FLOATING POINT CONFIGURATION
132 *
133 * Note(s) : (1) Configure LIB_STR_CFG_FP_EN to enable/disable floating point string function(s).
134 *
135 * (2) Configure LIB_STR_CFG_FP_MAX_NBR_DIG_SIG to configure the maximum number of significant
136 * digits to calculate &/or display for floating point string function(s).
137 *
138 * See also 'lib_str.h STRING FLOATING POINT DEFINES Note #1'.
139 *********************************************************************************************************
140 */
141 
142  /* Configure floating point feature(s) [see Note #1] : */
143 #define LIB_STR_CFG_FP_EN DEF_ENABLED
144  /* DEF_DISABLED Floating point functions DISABLED */
145  /* DEF_ENABLED Floating point functions ENABLED */
146 
147  /* Configure floating point feature(s)' number of ... */
148  /* ... significant digits (see Note #2). */
149 #define LIB_STR_CFG_FP_MAX_NBR_DIG_SIG LIB_STR_FP_MAX_NBR_DIG_SIG_DFLT
150 
151 
152 /*
153 *********************************************************************************************************
154 * MODULE END
155 *********************************************************************************************************
156 */
157 
158 #endif /* End of lib cfg module include. */
159